using System;
using System.Collections.Generic;
using System.Text;

namespace Lizk.SimpleHUD
{
    public abstract class HUDPage : HUDContainerSimple
    {
        public event EventHandler Shown;
        public event EventHandler Closed;
        public event EventHandler Activated;
        public event EventHandler Deactivated;
        public bool Opaque { get; set; }
        public HUDPage()
        {
            Alpha = 0;
        }
        
        public virtual void Show() 
        {
            if (Shown != null)
                Shown(this, null);
        }

        public virtual void Close()
        {
            if (Closed != null)
                Closed(this, null);
        }

        public virtual void Activate()
        {
            if (Activated != null)
                Activated(this, null);
        }
        public virtual void Deactivate()
        {
            if (Deactivated != null)
                Deactivated(this, null);
        }


        public abstract void Command(HUDCommands command, object tag);

        public virtual void Dispose()
        {
        }
    }
}
